﻿<script type="text/javascript">
    $(function () {
        getButton("paradise_stat");
    });

    function ui_paradise_stat_init_list(toolbar) {
        $("#ui_paradise_stat_dg").datagrid({       //初始化datagrid
            url: "ashx/bg_paradise.ashx?action=search",
            striped: true, rownumbers: true, pagination: true, pageSize: 20, singleSelect: true,
            idField: 'id',
            sortName: 'code',
            sortOrder: 'asc',
            pageList: [20, 40, 60, 80, 100],
            frozenColumns: [[                
                { field: 'name', title: '骨灰堂名称', sortable: true, width: 80 }
            ]],
            columns: [[
                       { field: 'graves', title: '穴总数', sortable: true, width: 150 },
                       { field: 'egraves', title: '已存穴数', width: 100 },
                       { field: 'empties', title: '空穴数', sortable: true, width: 80 },                      
                       { field: 'singles', title: '单穴数', width: 80 },
                       { field: 'doubles', title: '双穴数', width: 150 },
                       { field: 'multis', title: '多穴数', width: 150 },
                       { field: 'totals', title: '死者容量', width: 150 },
                       { field: 'deads', title: '已存死者数', width: 150 }
            ]],
            toolbar: toolbar.length == 0 ? null : toolbar   //请求回来的当前用户可以操作的按钮            
        });
    }

</script>
<div id="ui_paradise_stat_layout" class="easyui-layout" data-options="fit:true,border:false">
    <div data-options="region:'center',border:false">
        <table id="ui_paradise_stat_dg" data-options="fit:true,border:false">
        </table>
    </div>
</div>
